package com.ebt.m.customer.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;

import com.ebt.m.R;
import com.ebt.m.commons.buscomponent.listview.IView;

/**
 * Created by wanglu on 2017/10/18.
 */

public class CustomerItemCharTitle extends IView {
    TextView timeLabel;

    public CustomerItemCharTitle(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
        inflate(context, R.layout.layout_customer_item_char_title, this);
        timeLabel = (TextView) findViewById(R.id.tv_title);

    }

    public CustomerItemCharTitle(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public CustomerItemCharTitle(Context context) {
        this(context, null);
    }

    @Override
    public void update(Object... args) {
        String tag = (String) args[0];
        timeLabel.setText(tag);
    }
}
